package com.lyj.mode.principle.liskov;

/**
 * 测试类1
 * @author:liyajie
 * @createTime:2022/1/31 15:25
 * @version:1.0
 */
public class Test1 {

    public static void main(String[] args) {
        int result = new Calculator().add(4,6);
        System.out.println("4和6之和为:" + result);

        int mul = new SuperCalculator().mul(4,6);
        System.out.println("4和6之和与100相差:" + mul);
    }
}
